package com.qwz.learn;
/**
* @Description: 职责链的客户端
* @Package com.qwz.learn.Client
* @author Qiuwuzhi
* @date 2019/12/27 14:52
* @version V1.0
*/
public class Client {

    public static void main(String[] args) {
        Handler handler1 = new ConcreteHandler1();
        Handler handler2 = new ConcreteHandler2();

        handler1.setSuccessor(handler2);
        handler1.handleRequest();
    }
}
